import java.util.Scanner;

/**
 * 为已知长度的数组键盘录入赋值
 */
public class addArr {
    public static void main(String[] args) {
        int[] arr = new int[6];
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < arr.length; i++) {
            System.out.println("arr数组长度为"+arr.length+",请为数组赋值：");
            arr[i] = sc.nextInt();
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");
        }
    }
}
